﻿using AutoMapper;
using B.S.ProductionProject.Domain;
using B.S.ProductionProject.Write.WebAPI.Applications.Commands.ProductionPlanningCommand;
using B.S.ProductionProject.Write.WebAPI.Applications.Commands.ProductionScheduleDetailCommand;

namespace B.S.ProductionProject.Write.WebAPI
{
    public class MappingFiles : Profile
    {
        public MappingFiles()
        {
            CreateMap<B.S.ProductionProject.Domain.ProductionPlanning, AddProductionPlanningCommand>().ReverseMap();
            CreateMap<ProductionScheduleDetail, AddProductionScheduleDetailCommand>().ReverseMap();
            CreateMap<ProductionPlanning, UpdateProductionPlanningCommand>().ReverseMap();
            CreateMap<ProductionScheduleDetail, UpdateProductionScheduleDetailCommand>().ReverseMap();
        }
    }
}
